#pragma once
#include "C_Widget.h"
#include "C_Label.h"
#include "C_Picture.h"

namespace gui
{
	class C_CheckBox :
		public C_Widget
	{
	private:
		C_Picture m_textureChecked;
		C_Picture m_textureUnchecked;
		C_Label	  m_capture;
		bool	  m_checked;
	public:
		C_CheckBox();
		virtual ~C_CheckBox();

		void check()		{ m_checked = true; }
		void unchecked()	{ m_checked = false; }

		bool isChecked()	{ return m_checked; }

		virtual void onClickButton(sf::Mouse::Button b_type);

		virtual void renderWidget(); //for render contents
	};
}

